/**
 * 枚举: https://www.bilibili.com/video/BV1vs411n7TH?p=110
 */
#include <stdio.h>
#include "../entity/enum_Week.h"

void printWeek(enum Week);

int main() {
    enum Week day = Tuesday;
    printWeek(day);
    return 0;
}

void printWeek(enum Week day) {
    switch (day) {
        case Monday:
            printf("Monday: day = %d\n", day);
            break;
        case Tuesday:
            printf("Tuesday: day = %d\n", day); //Tuesday: day = 1
            break;
        case Wednesday:
            printf("Wednesday: day = %d\n", day);
            break;
        case Thursday:
            printf("Thursday: day = %d\n", day);
            break;
        case Friday:
            printf("Friday: day = %d\n", day);
            break;
        case Saturday:
            printf("Saturday: day = %d\n", day);
            break;
        case Sunday:
            printf("Sunday: day = %d\n", day);
            break;
    }
}
